<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of CategoryTitleController
 *
 * @author tuanbao
 */
class OptionController extends CrudController
{

    public $modelName   = 'Options';
    public $title       = 'Option';
    public $ajaxControl = FALSE;
    public $listColumns = array(
        'description' => '',
        'value'       => '',
        'name'        => '',
    );

    public function init()
    {
        parent::init();

        $this->formColumns['name']        = '';
        $this->formColumns['value']       = '';
        $this->formColumns['description'] = '';
        $this->listColumns['category']    = array(
            'type' => 'radioButtonList',
            'data' => Options::getArrayCategory(),
        );
        $this->formColumns['category']    = array(
            'type' => 'radioButtonList',
            'data' => Options::getArrayCategory(),
        );

        $this->formColumns['data_type'] = array(
            'type' => 'dropDownList',
            'data' => Options::getArrayType(),
        );
    }

}

?>
